package coml.jiyun.hp.designmode;

//1.懒汉
public class SingleTon2 {

    private static SingleTon2 singleTon2;
    private SingleTon2(){}

    public static SingleTon2 getInstance(){
        if (singleTon2 == null){
            singleTon2 = new SingleTon2();
        }
            return singleTon2;
    }
}

// @Override
//     public void setUserVisibleHint(boolean isVisibleToUser) {
//         super.setUserVisibleHint(isVisibleToUser);
//         if (getUserVisibleHint()){
//             initData();
//         }else {
//             if ( != null && .size()>0){
//                 fuLiTwoBeans.clear();
//             }
//         }
//     }